<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>公司</title>
		<link rel="stylesheet" href="${rc.contextPath}/bootstrap/css/bootstrap.css" />
		<script src="${rc.contextPath}/js/jquery.1.10.1.min.js"></script>
		<script type="text/javascript" src="${rc.contextPath}/bootstrap/js/bootstrap.min.js"></script>


		<link rel="stylesheet" href="${rc.contextPath}/css/companylist.css" />
	</head>

	<body>

		<!--   nav     -->
		#parse("header.html")

		<p></p>
		
		<!--  搜索框    begin  -->
		<div class="container">
			<nav role="navigation">
			    <div class="container-fluid"> 
				    <div class="navbar-header" >
				        <img src="${rc.contextPath}/img/searchlogo_company.png" style="margin-top: 7px;" />
				    </div>
				    <form class="navbar-form navbar-left" role="search" action="${rc.contextPath}/company/search/1" method="get">
				        <div class="form-group">
				            <input type="text" maxlength="30" placeholder="Search" name="keyword">
				        </div>
				        <button type="submit" class="btn btn-default">提交</button>
				    </form>
				    <p>热搜词： 华为 百度 中国移动 富士康 联想</p>
			    </div>
			</nav>
		</div>
		<!--  搜索框    end  -->
		
		<div class="container mid_content">
			
			<!--  左边的行业框 -->
			<div class="col-xs-3 left_content">
				<ul class="list-group">
					<li class="list-group-item"><b>行业领域:</b><span class="text-muted current_vocation">$!showTypeValue</span></li>
					#foreach($!oneDomain in $!domainList)
					<li class="list-group-item"><a href="${rc.contextPath}/company/domain/$!oneDomain.id/1">$!oneDomain.domain_name</a><span class="glyphicon glyphicon-chevron-right pull-right"></span></li>
					#end
				</ul>
			</div>
			<!--   右边 的列表 -->
			<div class="col-xs-9" style="padding-right: 0px;">
				<div class="left_content">
					<dl>
						<dt>
							<strong>
								找到  $!page.totalRecord 个与“<span>$!keyword</span>”相关的公司
							</strong>
						</dt>
						
						<hr />
						<dd>筛选条件：
						<!-- 显示类型，是：1默认显示全部，2按行业显示，3搜索显示 -->
						<input type="hidden" name="showType" id="showType" value="$!showType"/>
						<input type="hidden" name="showTypeValue" id="showTypeValue" value="$!showTypeValue"/>
							<span>$!showTypeValue
							</span>
						</dd>
					</dl>
				</div>
				
				<div class="left_content">
					<ul class="list-group">
						#foreach($!company in $!companyList)
						<li class="list-group-item companylist_item">
							<a href="${rc.contextPath}/company/detail/$!company.id"><img class="img-thumbnail" src="http://127.0.0.1:8080/image/companylogo/$!company.company_logo" width="100px"/></a>
							<div>
								<a ka="com1-title" href="${rc.contextPath}/company/detail/$!company.id" target="_blank">$!company.company_name</a>
								<br>
								<p>$!company.domain_name<em>|</em>$!company.location_name<em>|</em>
									#if($!company.company_scale == 0)
									少于15人
									#end
									#if($!company.company_scale == 1)
									15-50人
									#end
									#if($!company.company_scale == 2)
									50-150人>
									#end
									#if($!company.company_scale == 3)
									150-500人
									#end
									#if($!company.company_scale == 4)
									500-2000人
									#end
									#if($!company.company_scale == 5)
									2000人以上
									#end
									<span class="pull-right">公司整体评分&nbsp;&nbsp;<span class="grade_star ps_start mr10"><i style="width:84.0%;"></i></span>4.2
									</span>
								</p>
								<a ka="com1-review" href="/gsr11514.html" class="weird" target="_blank">
									点评(6874)
								</a>
								<em>|</em><a ka="com1-photo" href="/gsp11514.html" class="weird" target="_blank">照片(113)</a>
								
								<br />
								<span class="text-muted">$!company.company_brief</span>
							</div>
						</li>
						#end
						
					</ul>
					
				</div>
				
				<div class="pagination" style="margin: 0px 0 20px;">$!page.pageString</div>
				
			</div>
			
		</div>
		
	</body>
	
	<script type="text/javascript">
	$(document)
	.on(
			"click",
			".pagination a",
			function(e) {
				var pageNum = $(this).attr("pageData");
				if (pageNum == 0 || isNaN(pageNum)) {
					return;
				}
				var showType = $("#showType").val();
				var showTypeValue = $("#showTypeValue").val();
				if(showType == 1){
					window.location.href = "${rc.contextPath}/company/list/"+ pageNum;
				}
				if(showType == 2){
					window.location.href = "${rc.contextPath}/company/domain/"+ showTypeValue + "/" + pageNum;
				}
				if(showType == 3){
					window.location.href = "${rc.contextPath}/company/search/"+ pageNum +"?keyword="+showTypeValue;
				}
				window.location.href = "${rc.contextPath}/company/list/"+ pageNum;
			});
	</script>

</html>